package cn.star.jots.filmRating.service.impl;

import cn.star.jots.filmRating.mapper.FilmRatingMapper;
import cn.star.jots.filmRating.pojo.vo.FilmRatingVO;
import cn.star.jots.filmRating.service.FilmRatingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class FilmRatingServiceImpl implements FilmRatingService {

    @Autowired
    FilmRatingMapper filmRatingMapper;

    @Override
    public List<FilmRatingVO> selectFilmRating() {
       log.info("查询电影");
       return filmRatingMapper.selectFilmRating();
    }

    @Override
    public List<FilmRatingVO> selectHitFilm() {
        log.info("查询热播电影");
        return filmRatingMapper.selectHitFilm();
    }

}
